import request from '@/utils/request'

// 设置Excel表头字段
export const setExcelHeader = (data) => {
  return request({
    url: '/v1/excel/header',
    method: 'POST',
    data
  })
}

// 修改Excel表头字段
export const updateExcelHeader = (params, id) => {
  return request({
    url: `/v1/excel/header/${id}`,
    method: 'PUT',
    params
  })
}

// 获取Excel表头
export const getExcelHeader = () => {
  return request({
    url: '/v1/excel/header',
    method: 'GET'
  })
}

// 删除Excel表头
export const removeExcelHeader = (id) => {
  return request({
    url: `/v1/excel/header/${id}`,
    method: 'POST'
  })
}
